libxl: use LOG instead of LIBXL__LOG in libxl_utils.c
authorKelley Nielsen <kelleynnn@gmail.com>
Mon, 11 Nov 2013 23:23:56 +0000 (15:23 -0800)
committerIan Campbell <ian.campbell@citrix.com>
Tue, 19 Nov 2013 14:13:43 +0000 (14:13 +0000)
commitb8c22d2eba24e6706e8b2dd73ab306793a7d7d08
tree8c6a040480e8e651abd1fbf1dfdba40fcbb94efd
parent68cd21e88376f79b958e6413657bdaa12b5e4ec0
libxl: use LOG instead of LIBXL__LOG in libxl_utils.c

To conform to the new coding style, replace the invocation of
LIBXL__LOG in the function libxl_pipe() in the file libxl_utils.c
with an invocation of LOG. Create a local libxl__gc gc* for LOG
to use by invoking GC_INIT(ctx) at the top of the function, and
clean it up by invoking GC_FREE at the exit. Create a variable,
ret, to consolidate exits in one place and avoid invoking GC_FREE
twice.

Suggested-by: Ian Campbell <Ian.Campbell@citrix.com>
Signed-off-by: Kelley Nielsen <kelleynnn@gmail.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxl/libxl_utils.c